package com.gable.exhibition.dao;

import com.gable.exhibition.model.Install;
import com.gable.exhibition.view.InstallView;
import com.gable.exhibition.view.ParameterView;

import java.util.List;
import java.util.Map;

public interface InstallDao {
    int deleteByPrimaryKey(Long installId);

    int insertSelective(Install record);

    Install selectByPrimaryKey(Long installId);

    int updateByPrimaryKeySelective(InstallView record);

    Integer queryInstallRemindCount(ParameterView parameterView);
    List<InstallView> queryInstallRemind(ParameterView parameterView);

    Integer installListCount(ParameterView parameterView);
    List<InstallView> installList(ParameterView parameterView);

    Integer queryRemindForCheckCount(ParameterView parameterView);
    List<InstallView> queryRemindForCheck(ParameterView parameterView);

    InstallView installInfo(ParameterView parameterView);

    //根据实际发货单ID查询派工人信息
    InstallView getProjectChargePerson(ParameterView parameterView);

    //根据实际发货设备ID查询安装单信息
    List<Install> queryInstalls(Long contractDeviceActualSendId);
    //修改安装单
    int updateEngineer(Install install);
    //根据实际发货单ID修改安装单
    int updateByContractActualSendId(InstallView installView);

    Map<String,Object> checkForSms(Long installId);
}